<template>
	<div>
		<el-form-item label="商品编码：" prop="model.sku.product_no">
			<el-input v-model="form.model.sku.product_no" class="max-w460" placeholder="请填写商品编码 (不填系统自动生成)"></el-input>
		</el-form-item>
		<el-form-item label="商品销售价：" width="80" :rules="[{ required: true, message: '请填写商品销售价' }]"
			prop="model.sku.product_price">
			<el-input type="number" v-model="form.model.sku.product_price" class="max-w460" placeholder="请填写商品销售价"></el-input>
		</el-form-item>
		<el-form-item label="商品划线价：" :rules="[{ required: false, message: '请填写商品划线价' }]" prop="model.sku.line_price">
			<el-input type="number" v-model="form.model.sku.line_price" class="max-w460" placeholder="请填写商品划线价"></el-input>
		</el-form-item>

		<el-form-item label="库存是否限量："  prop="model.sku.unlimit">
			<el-radio-group v-model="form.model.sku.unlimit">
				<el-radio label="1">不限量</el-radio>
				<el-radio label="0">限量</el-radio>
			</el-radio-group>
		</el-form-item>
		
		<el-form-item  label="库存数量："  v-if="form.model.sku.unlimit == '0'" :rules="[{ required: true, message: '请填写库存数量' }]" prop="model.sku.stock_num">
			<el-input type="number" v-model="form.model.sku.stock_num" class="max-w460" placeholder="请填写库存数量"></el-input>
		</el-form-item>

        <el-form-item label="商品库位：" prop="model.sku.storehouse">
            <el-input class="max-w460" type="text" v-model="form.model.sku.storehouse" placeholder="请填写商品库位（选填）"></el-input>
        </el-form-item>

		<el-form-item label="商品保质期：" prop="model.sku.shelf_life">
            <el-date-picker
                clearable
                value-format="YYYY-MM-DD"
                v-model="form.model.sku.shelf_life"
                type="date"
                placeholder="请选择商品保质期到期日期（选填）"
            />
        </el-form-item>
		<!-- <el-form-item label="商品重量(Kg)：" :rules="[{ required: false, message: '请填写商品重量' }]"
			prop="model.sku.product_weight">
			<el-input type="number" v-model="form.model.sku.product_weight" class="max-w460"></el-input>
		</el-form-item> -->
	</div>
</template>

<script>
export default {
	inject: ['form']
}
</script>

<style></style>
